package com.ztgf.shopping.models.service.shop;

import com.baomidou.mybatisplus.plugins.Page;
import com.ztgf.shopping.models.bo.shop.ShopMemberRelationBO;
import com.ztgf.shopping.models.bo.shop.ShopMemberRelationSaveBO;
import com.ztgf.shopping.models.dto.shop.ShopMemberRelationDTO;
import com.baomidou.mybatisplus.service.IService;
import com.ztgf.shopping.models.vo.shop.ShopMemberRelationVO;

/**
 * <p>
 * 会员表  服务类
 * </p>
 *
 * @author zhanghualang
 * @since 2020-05-26
 */
public interface IShopMemberRelationService extends IService<ShopMemberRelationDTO> {
    boolean add(ShopMemberRelationSaveBO shopMemberRelationSaveBO);

    Page<ShopMemberRelationVO> queryMemberPageList(ShopMemberRelationBO shopMemberRelationBO);

    ShopMemberRelationDTO getByShopId(Long sellShopId, Long buyShopId, Integer status); //根据卖家店铺ID ，买家店铺ID 获取会员记录

    boolean updateByShopId(Long sellShopId, Long buyShopId, Integer status);//验证会员是否已存在
}
